//认证

import Http from "../utils/HttpUtil";
import URL from "./URL";

export default {
    //  意见反馈 
    async Feedback(userId,content,status,phone,img1,img2){
        let url=URL.GetURL(URL.Feedback);
        let para=[
            ["userId",userId],
            ["content",content],
            ["status",status],
            ["phone",phone]
        ];
        let file=[
            ["imgs",img1],
            ["imgs",img2],
        ];

        return await(Http.PostWithFile(url,para,file))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    }
}